home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / AMOSList / AMOSLIST.0997 / 000373_amos-request@svcs1.digex.net_Tue Sep 30 14:32:36 1997.msg < prev    next >
Text File  |  1997-10-01  |  3KB  |  86 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail4.access.digex.net (8.8.5/8.8.5) with ESMTP id OAA28556
  3.     for <mcox@access.digex.net>; Tue, 30 Sep 1997 14:32:34 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id JAA04462
  6.     for amos-out; Tue, 30 Sep 1997 09:54:07 -0400 (EDT)
  7. Received: from mail4.access.digex.net (mail4.access.digex.net [205.197.247.2])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id JAA04459
  9.     for <amos-list@svcs1.digex.net>; Tue, 30 Sep 1997 09:54:06 -0400 (EDT)
  10. Received: from leary.huron.net (root@leary.huron.net [205.150.207.2])
  11.     by mail4.access.digex.net (8.8.5/8.8.5) with ESMTP id JAA13041
  12.     for <amos-list@access.digex.net>; Tue, 30 Sep 1997 09:54:05 -0400 (EDT)
  13. Received: from golden.net (ppp12-ts1-kw.huron.net [205.150.207.61])
  14.     by leary.huron.net (8.8.5/8.8.5) with SMTP id JAA26474
  15.     for <amos-list@access.digex.net>; Tue, 30 Sep 1997 09:50:53 -0400
  16. From: "Mr. Giark To You" <joehick@golden.net>
  17. To: AMOS List <amos-list@access.digex.net>
  18. Date: Tue, 30 Sep 1997 09:49:22 -0500
  19. Message-ID: <yam7212.1149.5077904@huron.net>
  20. In-Reply-To: <yam7211.2590.3872968@mail.redrose.net>
  21. X-Mailer: YAM 1.3.3 - Amiga Mailer by Marcel Beck
  22. Subject: Re: Help
  23. MIME-Version: 1.0
  24. Content-Type: text/plain
  25. Status: O
  26. X-Status: 
  27.  
  28. On 29-Sep-97, Mush wrote:
  29. >-> I did it a bit differently. I keep a variable with the current max number
  30. of
  31. >-> items in it and when I delete one, I copy the top item into it and lower
  32. the
  33. >-> total by one. I obviously don't care about sorting.
  34. >so you can understand what im saying a bit better. Here is an array, and next
  35. >to it, how it would be displayed when the listview calls it:
  36.  
  37. Umm, I understood what you were saying. I think you be the cofused one, this
  38. time.
  39.  
  40. >Now, just blanking out the necessary line (like you and Pietro said to do)
  41.  
  42. I didn't say to do that, you silly brit. Q8-{)
  43.  
  44. >will be screwed when you use GUI READ to get its position from within the
  45. >array.
  46.  
  47. That's why I keep track of the highest data position. Whenever I erase an
  48. entry, I pull the last item down and put it in at that spot, to avoid the
  49. blank line in the array problem.
  50.  
  51. My Graphical explanation:
  52.  
  53. 0 - fred
  54. 1 - barney
  55. 2 - george
  56. 3 - newton
  57.  
  58. Delete item 1 would result in:
  59.  
  60. 0 - fred
  61. 1 -
  62. 2 - george
  63. 3 - newton
  64.  
  65. Which, as you said, messes up the listview, so I do the following:
  66.  
  67. 0 - fred
  68. 1 - newton
  69. 2 - george
  70. 3 - 
  71.  
  72. Shuffling the top item down to avoid any blanks in the listview. See?
  73.  
  74. Well met and godspeed,
  75.                       Giark
  76.                                            joehick@golden.net
  77.                              http://www.golden.net/~joehick/fbn/index.html
  78.      ______  ______    _____  .------------------------------------------.
  79.     / ____/ / __  /   / ___ \ !     AMOS games, utilities, demos, etc.   !
  80.    / /__   / /_/ /   / /  / / !                                          !
  81.   / ___/  / ___  |  / /  / /  !       CyberSpace BBS (519)579-0072       !
  82.  / /     / /__/ /  / /  / /   !     on A2000 060/50MHz (519)579-0173     !
  83. /_/     /______/  /_/  /_/    !                                          !
  84.    Fly By Nite Videe-Oh!      !  FBN Amiga 500 020 14MHz 1C/5F RAM 3.1OS !
  85.          IAPA Member          `------------------------------------------'
  86.